package java6681.truck;

import java.util.Scanner;

public class AverageCharacters6681 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        System.out.print("请输入一个正整数：");
        int n = scan.nextInt();

        String[] arr = new String[n];
        arr[0] = scan.nextLine();

        int sum = 0;

       for (int i = 0;i < n ;i++){
           System.out.print("请输入第"+(i+1)+"个字符串：");
           arr[i] = scan.nextLine();
            sum += arr[i].length();
       }
        double aver = sum /n;
        System.out.println("字符总数："+sum);
        System.out.println("平均字符数: " +aver);
    }
}
